import { ReactNode } from 'react'
import styles from './index.module.less'

interface IProps {
  children?: ReactNode
  text: string
}
export function TableWrap(props: IProps) {
  return (
    <div className={styles['header-wrapper']}>
      <div className={styles['title']}>{props.text}</div>
      <div className={styles['action']}>{props?.children}</div>
    </div>
  )
}
interface PropsBaseTable {
  children: ReactNode
}
export default function TableBase(props: PropsBaseTable) {
  return <div className={styles['base-table']}>{props.children}</div>
}
